<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="/tags.jsp"%>
<aos:html>
<aos:head title="微信用户列表">
    <aos:include lib="ext" />
    <aos:base href="console/wxuser" />
</aos:head>
<aos:body>
</aos:body>
<aos:onready>
    <aos:viewport layout="border">
    	<aos:formpanel id="_qForm" labelWidth="60" region="north" header="false" padding="5 0 0 0" border="false">
			<aos:numberfield  fieldLabel="用户编号" name="userid" />
			<aos:textfield fieldLabel="openid" name="openid" />
			<aos:button width="80" text="查 询" margin="0 0 0 15px" icon="search.png" onclick="_g_hosp_query"></aos:button>
			<aos:button width="80" text="重 置" margin="0 0 0 15px" icon="refresh1.png" onclick="AOS.reset(_qForm)"></aos:button>
		</aos:formpanel>
        <aos:gridpanel forceFit="true" border="1 0 0 0" id="_g_hosp" url="list" onrender="_g_hosp_query" region="center">
            <aos:column type="rowno" header="序号" width="40"/>
            <aos:column header="unionid" dataIndex="unionid" width="120"/>
             <aos:column header="用户编号" dataIndex="userid" width="80" />
             <aos:column header="openid" dataIndex="openid" width="100" />
             <aos:column header="昵称" dataIndex="nickname" hidden="true" width="80" />
             <aos:column header="性别" dataIndex="sex" width="60" />
             <aos:column header="省份" dataIndex="province" width="80" />
             <aos:column header="城市" dataIndex="city" width="80" />
             <aos:column header="地区" dataIndex="country" width="80" />
             <aos:column header="头像图片" dataIndex="headimgurl" width="110" />
             <aos:column header="父用户编号" dataIndex="parentUserid" width="100" />
        </aos:gridpanel>
    </aos:viewport>
    
    <script type="text/javascript">
        //查询方法
        function _g_hosp_query(){
            _g_hosp_store.getProxy().extraParams = _qForm.getValues();
            _g_hosp_store.getProxy().getMethod = function(){ return 'POST'; }
            _g_hosp_store.load();
         }
        </script>
</aos:onready>
</aos:html>